2020-2021 Sunseeker Telemetry and Lighting System
timer_a_ex2_continousModeOperationWithCCR0Interrupt.c File Reference
#include "driverlib.h"
#include "Board.h"

Go to the source code of this file.

Macros

#define COMPARE_VALUE   50000
 

Functions

void main (void)
 
void TIMER1_A0_ISR (void)
 

Macro Definition Documentation

◆ COMPARE_VALUE

#define COMPARE_VALUE   50000

TIMER_A, Toggle LED1, CCR0 Cont. Mode ISR, DCO SMCLK

Toggle LED1 using software and TA_0 ISR. Toggles every 50000 SMCLK cycles. SMCLK provides clock source for TACLK. During the TA_0 ISR, LED1 is toggled and 50000 clock cycles are added to CCR0. TA_0 ISR is triggered every 50000 cycles. CPU is normally off and used only during TA_ISR. ACLK = n/a, MCLK = SMCLK = TACLK = default DCO ~1.048MHz

     MSP430FR2xx_4xx Board
        ---------------
    /|\|               |
     | |               |
     --|RST            |
       |               |
       |               |-->LED1

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • TimerA peripheral
  • GPIO peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • Timer A0

Definition at line 64 of file timer_a_ex2_continousModeOperationWithCCR0Interrupt.c.

Function Documentation

◆ main()

void main ( void  )

◆ TIMER1_A0_ISR()

void TIMER1_A0_ISR ( void  )